package com.example.perplonews.a_d_fragment.c_video.adapter

import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentStatePagerAdapter

class VideoVpAdapter(fragmentManager: FragmentManager,private var list: List<Fragment>):FragmentStatePagerAdapter(fragmentManager) {
    private val titles = arrayOf("推荐", "小视频")

    override fun getCount(): Int {
        return list.size
    }

    override fun getItem(position: Int): Fragment {
        return list.get(position)
    }

    override fun getPageTitle(position: Int): CharSequence? {
        return titles.get(position)
    }


}
